// To parse this JSON data, do
//
//     final splashBean = splashBeanFromJson(jsonString);

import 'dart:convert';

SplashBean splashBeanFromJson(String str) => SplashBean.fromJson(json.decode(str));

String splashBeanToJson(SplashBean data) => json.encode(data.toJson());

class SplashBean {
  String apkUrl;
  int version;

  SplashBean({
    required this.apkUrl,
    required this.version,
  });

  SplashBean copyWith({
    String? apkUrl,
    int? version,
  }) =>
      SplashBean(
        apkUrl: apkUrl ?? this.apkUrl,
        version: version ?? this.version,
      );

  factory SplashBean.fromJson(Map<String, dynamic> json) => SplashBean(
    apkUrl: json["apkUrl"],
    version: json["version"],
  );

  Map<String, dynamic> toJson() => {
    "apkUrl": apkUrl,
    "version": version,
  };
}
